.class public Lcom/xingbook/group/activity/GroupRankActivity;
.super Lcom/xingbook/park/activity/BaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Lcom/xingbook/group/adapter/v;


# instance fields
.field private a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

.field private b:Lcom/xingbook/group/adapter/ac;

.field private c:Lcom/xingbook/ui/ae;

.field private d:Landroid/view/View;

.field private e:Landroid/widget/TextView;

.field private f:Ljava/util/ArrayList;

.field private g:Ljava/lang/String;

.field private h:Landroid/widget/RelativeLayout;

.field private i:Lcom/xingbook/group/activity/ao;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/park/activity/BaseActivity;-><init>()V

    new-instance v0, Lcom/xingbook/group/activity/ao;

    invoke-direct {v0, p0}, Lcom/xingbook/group/activity/ao;-><init>(Lcom/xingbook/group/activity/GroupRankActivity;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->i:Lcom/xingbook/group/activity/ao;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupRankActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->d:Landroid/view/View;

    return-object v0
.end method

.method private a(I)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->i:Lcom/xingbook/group/activity/ao;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/xingbook/group/activity/ao;->sendEmptyMessage(I)Z

    sget-object v0, Lcom/xingbook/c/o;->h:Ljava/util/concurrent/ExecutorService;

    new-instance v1, Lcom/xingbook/group/activity/an;

    invoke-direct {v1, p0, p1}, Lcom/xingbook/group/activity/an;-><init>(Lcom/xingbook/group/activity/GroupRankActivity;I)V

    invoke-interface {v0, v1}, Ljava/util/concurrent/ExecutorService;->execute(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/group/activity/GroupRankActivity;Ljava/lang/String;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/xingbook/group/activity/GroupRankActivity;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->e:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->d:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    return-void
.end method

.method static synthetic b(Lcom/xingbook/group/activity/GroupRankActivity;)Lcom/xingbook/ui/ae;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->c:Lcom/xingbook/ui/ae;

    return-object v0
.end method

.method static synthetic c(Lcom/xingbook/group/activity/GroupRankActivity;)Lcom/xingbook/group/adapter/ac;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->b:Lcom/xingbook/group/adapter/ac;

    return-object v0
.end method

.method static synthetic d(Lcom/xingbook/group/activity/GroupRankActivity;)Lcom/handmark/pulltorefresh/library/PullToRefreshListView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    return-object v0
.end method

.method static synthetic e(Lcom/xingbook/group/activity/GroupRankActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->g:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/group/activity/GroupRankActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->f:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic g(Lcom/xingbook/group/activity/GroupRankActivity;)Lcom/xingbook/group/activity/ao;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->i:Lcom/xingbook/group/activity/ao;

    return-object v0
.end method


# virtual methods
.method public a()V
    .locals 1

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/xingbook/group/activity/GroupRankActivity;->a(I)V

    return-void
.end method

.method public e()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u5708\u5b50-\u660e\u661f\u699c"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0165

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/xingbook/group/activity/GroupRankActivity;->a(I)V

    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    const/4 v2, 0x0

    invoke-super {p0, p1}, Lcom/xingbook/park/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f030026

    invoke-static {p0, v0, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->h:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->h:Landroid/widget/RelativeLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupRankActivity;->setContentView(Landroid/view/View;)V

    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupRankActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string v1, "com.xingbook.group.activity.GroupRankActivity.INTENT_GROUPID"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->containsKey(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    const-string v1, "com.xingbook.group.activity.GroupRankActivity.INTENT_GROUPID"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->g:Ljava/lang/String;

    :goto_0
    new-instance v1, Lcom/xingbook/ui/t;

    invoke-direct {v1, p0, v2}, Lcom/xingbook/ui/t;-><init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V

    const-string v0, "\u660e\u661f\u699c"

    iput-object v0, v1, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    const v0, -0x705e39

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/t;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-static {p0}, Lcom/xingbook/c/n;->c(Landroid/app/Activity;)I

    move-result v2

    sget v3, Lcom/xingbook/ui/t;->b:I

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v1, v0}, Lcom/xingbook/ui/t;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    const v0, 0x7f0a0163

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupRankActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    invoke-virtual {v0, v1}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->f:Ljava/util/ArrayList;

    const v0, 0x7f0a0164

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupRankActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    sget-object v1, Lcom/handmark/pulltorefresh/library/g;->a:Lcom/handmark/pulltorefresh/library/g;

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setMode(Lcom/handmark/pulltorefresh/library/g;)V

    new-instance v0, Lcom/xingbook/group/adapter/ac;

    iget-object v1, p0, Lcom/xingbook/group/activity/GroupRankActivity;->f:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/xingbook/group/adapter/ac;-><init>(Landroid/app/Activity;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->b:Lcom/xingbook/group/adapter/ac;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    iget-object v1, p0, Lcom/xingbook/group/activity/GroupRankActivity;->b:Lcom/xingbook/group/adapter/ac;

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setAdapter(Landroid/widget/ListAdapter;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->a:Lcom/handmark/pulltorefresh/library/PullToRefreshListView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Lcom/handmark/pulltorefresh/library/PullToRefreshListView;->setVisibility(I)V

    const v0, 0x7f0a0165

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupRankActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->d:Landroid/view/View;

    const v0, 0x7f0a0166

    invoke-virtual {p0, v0}, Lcom/xingbook/group/activity/GroupRankActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->e:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->d:Landroid/view/View;

    invoke-virtual {v0, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->h:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->c:Lcom/xingbook/ui/ae;

    const/16 v0, 0x96

    invoke-direct {p0, v0}, Lcom/xingbook/group/activity/GroupRankActivity;->a(I)V

    return-void

    :cond_0
    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupRankActivity;->finish()V

    goto/16 :goto_0
.end method

.method protected onPause()V
    .locals 1

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupRankActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->a(Landroid/content/Context;)V

    return-void
.end method

.method protected onResume()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->h:Landroid/widget/RelativeLayout;

    invoke-static {v0, p0}, Lcom/xingbook/ui/ae;->a(Landroid/widget/RelativeLayout;Landroid/app/Activity;)Lcom/xingbook/ui/ae;

    move-result-object v0

    iput-object v0, p0, Lcom/xingbook/group/activity/GroupRankActivity;->c:Lcom/xingbook/ui/ae;

    invoke-super {p0}, Lcom/xingbook/park/activity/BaseActivity;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/content/Context;)V

    invoke-virtual {p0}, Lcom/xingbook/group/activity/GroupRankActivity;->j()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    invoke-static {p0}, Lcom/a/a/g;->b(Landroid/content/Context;)V

    return-void
.end method
